<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class GdThumb</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> GdThumb</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">GdThumb Class Definition</p>
<p class="description"><p>This is the GD Implementation of the PHP Thumb library.</p></p>
		<p class="notes">
			Located in <a class="field" href="_clientResources---php---others---phpThumb---GdThumb.inc.php.html">/clientResources/php/others/phpThumb/GdThumb.inc.php</a> (line <span class="field">33</span>)
		</p>
		
				
		<pre><a href="../../PhpThumb/Core/ThumbBase.html">ThumbBase</a>
   |
   --GdThumb</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$currentDimensions" title="details" class="var-name">$currentDimensions</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$maxHeight" title="details" class="var-name">$maxHeight</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$maxWidth" title="details" class="var-name">$maxWidth</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$newDimensions" title="details" class="var-name">$newDimensions</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">resource</span>
					<a href="#$oldImage" title="details" class="var-name">$oldImage</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$options" title="details" class="var-name">$options</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$percent" title="details" class="var-name">$percent</a>
				</div>
																<div class="var-title">
					<img src="../../media/images/Variable.png" alt=" " />
					<span class="var-type">resource</span>
					<a href="#$workingImage" title="details" class="var-name">$workingImage</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																																																																																																																																																																								<div class="method-definition">
					<img src="../../media/images/Constructor.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$isDataStream</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Destructor.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#__destruct" title="details" class="method-name">__destruct</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#adaptiveResize" title="details" class="method-name">adaptiveResize</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$width</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$height</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$maxWidth</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$maxHeight</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#calcHeight" title="details" class="method-name">calcHeight</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#calcImageSize" title="details" class="method-name">calcImageSize</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#calcImageSizePercent" title="details" class="method-name">calcImageSizePercent</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#calcImageSizeStrict" title="details" class="method-name">calcImageSizeStrict</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#calcPercent" title="details" class="method-name">calcPercent</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#calcWidth" title="details" class="method-name">calcWidth</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#crop" title="details" class="method-name">crop</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$startX</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$startY</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$cropWidth</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$cropHeight</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#cropFromCenter" title="details" class="method-name">cropFromCenter</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$cropWidth</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$cropHeight</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#determineFormat" title="details" class="method-name">determineFormat</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getCurrentDimensions" title="details" class="method-name">getCurrentDimensions</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#getImageAsString" title="details" class="method-name">getImageAsString</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getMaxHeight" title="details" class="method-name">getMaxHeight</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getMaxWidth" title="details" class="method-name">getMaxWidth</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getNewDimensions" title="details" class="method-name">getNewDimensions</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getOldImage" title="details" class="method-name">getOldImage</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getOptions" title="details" class="method-name">getOptions</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getPercent" title="details" class="method-name">getPercent</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#getWorkingImage" title="details" class="method-name">getWorkingImage</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#preserveAlpha" title="details" class="method-name">preserveAlpha</a>
										()
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#resize" title="details" class="method-name">resize</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$maxWidth</span> = <span class="var-default">0</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$maxHeight</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#resizePercent" title="details" class="method-name">resizePercent</a>
											([<span class="var-type">int</span>&nbsp;<span class="var-name">$percent</span> = <span class="var-default">0</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#rotateImage" title="details" class="method-name">rotateImage</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$direction</span> = <span class="var-default">'CW'</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#rotateImageNDegrees" title="details" class="method-name">rotateImageNDegrees</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$degrees</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#save" title="details" class="method-name">save</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setCurrentDimensions" title="details" class="method-name">setCurrentDimensions</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$currentDimensions</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setMaxHeight" title="details" class="method-name">setMaxHeight</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$maxHeight</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setMaxWidth" title="details" class="method-name">setMaxWidth</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$maxWidth</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setNewDimensions" title="details" class="method-name">setNewDimensions</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$newDimensions</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setOldImage" title="details" class="method-name">setOldImage</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$oldImage</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setOptions" title="details" class="method-name">setOptions</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setPercent" title="details" class="method-name">setPercent</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$percent</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#setWorkingImage" title="details" class="method-name">setWorkingImage</a>
											(<span class="var-type">object</span>&nbsp;<span class="var-name">$workingImage</span>)
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
										<a href="#show" title="details" class="method-name">show</a>
											([<span class="var-type">bool</span>&nbsp;<span class="var-name">$rawData</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
					<img src="../../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#verifyFormatCompatiblity" title="details" class="method-name">verifyFormatCompatiblity</a>
										()
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
Strict Standards: Only variables should be passed by reference in D:\xampp\htdocs\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php on line 712

Strict Standards: Only variables should be passed by reference in D:\xampp\htdocs\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php on line 712

<a name="var$currentDimensions" id="$currentDimensions"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$currentDimensions</span>
						(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The current dimensions of the image</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$maxHeight" id="$maxHeight"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$maxHeight</span>
						(line <span class="line-number">80</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The maximum height an image can be after resizing (in pixels)</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$maxWidth" id="$maxWidth"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$maxWidth</span>
						(line <span class="line-number">74</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The maximum width an image can be after resizing (in pixels)</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$newDimensions" id="$newDimensions"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$newDimensions</span>
						(line <span class="line-number">58</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The new, calculated dimensions of the image</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$oldImage" id="$oldImage"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">resource</span>
			<span class="var-name">$oldImage</span>
						(line <span class="line-number">40</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The prior image (before manipulation)</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$options" id="$options"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$options</span>
						(line <span class="line-number">68</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The options for this class</p>
<p class="description"><p>This array contains various options that determine the behavior in  various functions throughout the class.  Functions note which specific  option key / values are used in their documentation</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$percent" id="$percent"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$percent</span>
						(line <span class="line-number">86</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The percentage to resize the image by</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$workingImage" id="$workingImage"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">resource</span>
			<span class="var-name">$workingImage</span>
						(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The working image (used during manipulation)</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../PhpThumb/Core/ThumbBase.html">ThumbBase</a></span></p>
					<blockquote>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$errorMessage">ThumbBase::$errorMessage</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$fileName">ThumbBase::$fileName</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$format">ThumbBase::$format</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$hasError">ThumbBase::$hasError</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$imported">ThumbBase::$imported</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$importedFunctions">ThumbBase::$importedFunctions</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$isDataStream">ThumbBase::$isDataStream</a></span><br>
							</span>
													<img src="../../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../../PhpThumb/Core/ThumbBase.html#var$remoteImage">ThumbBase::$remoteImage</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			
Strict Standards: Only variables should be passed by reference in D:\xampp\htdocs\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php on line 712

Strict Standards: Only variables should be passed by reference in D:\xampp\htdocs\PhpDocumentor\phpDocumentor\Smarty-2.6.0\libs\Smarty_Compiler.class.php on line 712
<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">94</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class Constructor</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$isDataStream</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$options</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$isDataStream</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../PhpThumb/Core/ThumbBase.html#method__construct">ThumbBase::__construct()</a></dt>
						<dd>Class constructor</dd>
					</dl>
			
	</div>
<a name="method__destruct" id="__destruct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Destructor.png" />
		<span class="method-title">Destructor __destruct</span> (line <span class="line-number">136</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Class Destructor</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__destruct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodadaptiveResize" id="adaptiveResize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">adaptiveResize</span> (line <span class="line-number">237</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adaptively Resizes the Image</p>
<p class="description"><p>This function attempts to get the image to as close to the provided dimensions as possible, and then crops the  remaining overflow (from the center) to get the image to be the size specified</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			adaptiveResize
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$width</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$height</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$maxWidth</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$maxHeight</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$maxWidth</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$maxHeight</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcHeight" id="calcHeight"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcHeight</span> (line <span class="line-number">916</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates a new width and height for the image based on $this-&gt;maxWidth and the provided dimensions</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			calcHeight
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcImageSize" id="calcImageSize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcImageSize</span> (line <span class="line-number">955</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates the new image dimensions</p>
<p class="description"><p>These calculations are based on both the provided dimensions and $this-&gt;maxWidth and $this-&gt;maxHeight</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			calcImageSize
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcImageSizePercent" id="calcImageSizePercent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcImageSizePercent</span> (line <span class="line-number">1048</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates new dimensions based on $this-&gt;percent and the provided dimensions</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			calcImageSizePercent
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcImageSizeStrict" id="calcImageSizeStrict"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcImageSizeStrict</span> (line <span class="line-number">992</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates new image dimensions, not allowing the width and height to be less than either the max width or height</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			calcImageSizeStrict
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcPercent" id="calcPercent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcPercent</span> (line <span class="line-number">935</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates a new width and height for the image based on $this-&gt;percent and the provided dimensions</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			calcPercent
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcalcWidth" id="calcWidth"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">calcWidth</span> (line <span class="line-number">897</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates a new width and height for the image based on $this-&gt;maxWidth and the provided dimensions</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			calcWidth
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$width</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$height</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$width</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$height</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcrop" id="crop"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">crop</span> (line <span class="line-number">424</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Vanilla Cropping - Crops from x,y with specified width and height</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			crop
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$startX</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$startY</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$cropWidth</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$cropHeight</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$startX</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$startY</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$cropWidth</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$cropHeight</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcropFromCenter" id="cropFromCenter"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">cropFromCenter</span> (line <span class="line-number">387</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Crops an image from the center with provided dimensions</p>
<p class="description"><p>If no height is given, the width will be used as a height, thus creating a square crop</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			cropFromCenter
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$cropWidth</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$cropHeight</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$cropWidth</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$cropHeight</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddetermineFormat" id="determineFormat"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">determineFormat</span> (line <span class="line-number">1062</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines the file format by mime-type</p>
<p class="description"><p>This function will throw exceptions for invalid images / mime-types</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			determineFormat
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetCurrentDimensions" id="getCurrentDimensions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getCurrentDimensions</span> (line <span class="line-number">733</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $currentDimensions.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$currentDimensions">GdThumb::$currentDimensions</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getCurrentDimensions
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetImageAsString" id="getImageAsString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getImageAsString</span> (line <span class="line-number">609</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the Working Image as a String</p>
<p class="description"><p>This function is useful for getting the raw image data as a string for storage in  a database, or other similar things.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getImageAsString
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetMaxHeight" id="getMaxHeight"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getMaxHeight</span> (line <span class="line-number">754</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $maxHeight.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$maxHeight">GdThumb::$maxHeight</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getMaxHeight
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetMaxWidth" id="getMaxWidth"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getMaxWidth</span> (line <span class="line-number">775</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $maxWidth.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$maxWidth">GdThumb::$maxWidth</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getMaxWidth
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetNewDimensions" id="getNewDimensions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getNewDimensions</span> (line <span class="line-number">796</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $newDimensions.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$newDimensions">GdThumb::$newDimensions</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getNewDimensions
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetOldImage" id="getOldImage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getOldImage</span> (line <span class="line-number">848</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $oldImage.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$oldImage">GdThumb::$oldImage</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getOldImage
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetOptions" id="getOptions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getOptions</span> (line <span class="line-number">817</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $options.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$options">GdThumb::$options</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getOptions
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetPercent" id="getPercent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getPercent</span> (line <span class="line-number">827</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $percent.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$percent">GdThumb::$percent</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getPercent
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetWorkingImage" id="getWorkingImage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">getWorkingImage</span> (line <span class="line-number">869</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns $workingImage.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$workingImage">GdThumb::$workingImage</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getWorkingImage
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodpreserveAlpha" id="preserveAlpha"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">preserveAlpha</span> (line <span class="line-number">1152</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Preserves the alpha or transparency for PNG and GIF files</p>
<p class="description"><p>Alpha / transparency will not be preserved if the appropriate options are set to false.  Also, the GIF transparency is pretty skunky (the results aren't awesome), but it works like a  champ... that's the nature of GIFs tho, so no huge surprise.</p><p>This functionality was originally suggested by commenter Aimi (no links / site provided) - Thanks! :)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			preserveAlpha
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodresize" id="resize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">resize</span> (line <span class="line-number">164</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Resizes an image to be no larger than $maxWidth or $maxHeight</p>
<p class="description"><p>If either param is set to zero, then that dimension will not be considered as a part of the resize.  Additionally, if $this-&gt;options['resizeUp'] is set to true (false by default), then this function will  also scale the image up to the maximum dimensions provided.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			resize
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$maxWidth</span> = <span class="var-default">0</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$maxHeight</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$maxWidth</span><span class="var-description">: The maximum width of the image in pixels</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$maxHeight</span><span class="var-description">: The maximum height of the image in pixels</span>			</li>
				</ul>
		
			
	</div>
<a name="methodresizePercent" id="resizePercent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">resizePercent</span> (line <span class="line-number">336</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Resizes an image by a given percent uniformly</p>
<p class="description"><p>Percentage should be whole number representation (i.e. 1-100)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			resizePercent
		</span>
					([<span class="var-type">int</span>&nbsp;<span class="var-name">$percent</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$percent</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrotateImage" id="rotateImage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">rotateImage</span> (line <span class="line-number">512</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Rotates image either 90 degrees clockwise or counter-clockwise</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			rotateImage
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$direction</span> = <span class="var-default">'CW'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$direction</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrotateImageNDegrees" id="rotateImageNDegrees"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">rotateImageNDegrees</span> (line <span class="line-number">532</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Rotates image specified number of degrees</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			rotateImageNDegrees
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$degrees</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$degrees</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">save</span> (line <span class="line-number">635</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Saves an image</p>
<p class="description"><p>This function will make sure the target directory is writeable, and then save the image.</p><p>If the target directory is not writeable, the function will try to correct the permissions (if allowed, this  is set as an option ($this-&gt;options['correctPermissions']).  If the target cannot be made writeable, then a  RuntimeException is thrown.</p><p>TODO: Create additional paramter for color matte when saving images with alpha to non-alpha formats (i.e. PNG =&gt; JPG)</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			save
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$fileName</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$format</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$fileName</span><span class="var-description">: The full path and filename of the image to save</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$format</span><span class="var-description">: The format to save the image in (optional, must be one of [GIF,JPG,PNG]</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetCurrentDimensions" id="setCurrentDimensions"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setCurrentDimensions</span> (line <span class="line-number">744</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $currentDimensions.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$currentDimensions">GdThumb::$currentDimensions</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setCurrentDimensions
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$currentDimensions</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$currentDimensions</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetMaxHeight" id="setMaxHeight"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setMaxHeight</span> (line <span class="line-number">765</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $maxHeight.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$maxHeight">GdThumb::$maxHeight</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMaxHeight
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$maxHeight</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$maxHeight</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetMaxWidth" id="setMaxWidth"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setMaxWidth</span> (line <span class="line-number">786</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $maxWidth.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$maxWidth">GdThumb::$maxWidth</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setMaxWidth
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$maxWidth</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$maxWidth</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetNewDimensions" id="setNewDimensions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setNewDimensions</span> (line <span class="line-number">807</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $newDimensions.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$newDimensions">GdThumb::$newDimensions</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setNewDimensions
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$newDimensions</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$newDimensions</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetOldImage" id="setOldImage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setOldImage</span> (line <span class="line-number">859</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $oldImage.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$oldImage">GdThumb::$oldImage</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setOldImage
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$oldImage</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$oldImage</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetOptions" id="setOptions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setOptions</span> (line <span class="line-number">691</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $this-&gt;options to $options</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setOptions
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$options</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$options</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetPercent" id="setPercent"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setPercent</span> (line <span class="line-number">838</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $percent.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$percent">GdThumb::$percent</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setPercent
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$percent</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$percent</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetWorkingImage" id="setWorkingImage"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">setWorkingImage</span> (line <span class="line-number">880</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets $workingImage.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../../PhpThumb/Core/GdThumb.html#var$workingImage">GdThumb::$workingImage</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setWorkingImage
		</span>
					(<span class="var-type">object</span>&nbsp;<span class="var-name">$workingImage</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">object</span>
				<span class="var-name">$workingImage</span>			</li>
				</ul>
		
			
	</div>
<a name="methodshow" id="show"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">show</span> (line <span class="line-number">565</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Shows an image</p>
<p class="description"><p>This function will show the current image by first sending the appropriate header  for the format, and then outputting the image data. If headers have already been sent,  a runtime exception will be thrown</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../PhpThumb/Core/GdThumb.html">GdThumb</a></span>
		<span class="method-name">
			show
		</span>
					([<span class="var-type">bool</span>&nbsp;<span class="var-name">$rawData</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$rawData</span><span class="var-description">: Whether or not the raw image stream should be output</span>			</li>
				</ul>
		
			
	</div>
<a name="methodverifyFormatCompatiblity" id="verifyFormatCompatiblity"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../../media/images/Method.png" />
		<span class="method-title">verifyFormatCompatiblity</span> (line <span class="line-number">1110</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Makes sure the correct GD implementation exists for the file type</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			verifyFormatCompatiblity
		</span>
				()
			</div>
	
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../PhpThumb/Core/ThumbBase.html">ThumbBase</a></span></p>
					<blockquote>
													<img src="../../media/images/Constructor.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#method__construct">ThumbBase::__construct()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodfileExistsAndReadable">ThumbBase::fileExistsAndReadable()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetErrorMessage">ThumbBase::getErrorMessage()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetFileName">ThumbBase::getFileName()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetFormat">ThumbBase::getFormat()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetHasError">ThumbBase::getHasError()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetImported">ThumbBase::getImported()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodgetImportedFunctions">ThumbBase::getImportedFunctions()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodimportPlugins">ThumbBase::importPlugins()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodimports">ThumbBase::imports()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodsetErrorMessage">ThumbBase::setErrorMessage()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodsetFileName">ThumbBase::setFileName()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodsetFormat">ThumbBase::setFormat()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodsetHasError">ThumbBase::setHasError()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#methodtriggerError">ThumbBase::triggerError()</a></span><br>
													<img src="../../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../../PhpThumb/Core/ThumbBase.html#method__call">ThumbBase::__call()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 22 Feb 2013 05:33:56 +0100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>